﻿@model IEnumerable<b7.Models.Sanpham>

@{
    ViewBag.Title = "tpmenudoc";
    Layout = "~/Views/Shared/_Shopping.cshtml";
}
<div class="contright">
<div class="mota">
@*<div class="tieude">@Html.DisplayFor(model=>model.Name)</div>*@
@{try
  {
  foreach (var item in Model)
  {
      <div class="show_proc">
        <div class="sp"><a href="#"><img src="../..@Html.DisplayFor(modelItem => item.Anh)" alt="Anh Quang Cao"/></a></div>
        <div class="ten_gia">@Html.ActionLink(item.Name, "chitietsp", new { id=item.SanphamId })<br/><span style="text-decoration:line-through">Gia cu:@Html.DisplayFor(modelItem => item.OldPrice)</span><br/>Gia moi:<span style="font-size:large; color:Red">@Html.DisplayFor(modelItem => item.SalePrice)</span></div>
        
      </div>
  }
  }
  catch (Exception)
  {
      
      <h1>Không có ảnh</h1>;
  }} 
  </div>     
  
  
  @*<div class="mota">
<div class="tieude">Sản phẩm liên quan</div>
@{try
  {
  foreach (var item in Model)
  {
      <div class="show_proc">
        <div class="sp"><a href="#"><img src="../..@Html.DisplayFor(modelItem => item.Anh)" alt="Anh Quang Cao"/></a></div>
       @* <div class="sp"><a href="@Html.Action("chitietsp", new { id=item.Id })"><img src="../..@Html.DisplayFor(modelItem => item.Anh)" alt="Anh Quang Cao"/></a></div>*@
        @*<div class="ten_gia"><a href="#">@Html.DisplayFor(modelItem => item.Name)</a><br/>Gia cu:@Html.DisplayFor(modelItem => item.OldPrice)<br/>Gia moi:@Html.DisplayFor(modelItem => item.SalePrice)</div>*@
        @*<div class="ten_gia">@Html.ActionLink(item.Name, "chitietsp", new { id=item.SanphamId })<br/><span style="text-decoration:line-through">Gia cu:@Html.DisplayFor(modelItem => item.OldPrice)</span><br/>Gia moi:<span style="font-size:large; color:Red">@Html.DisplayFor(modelItem => item.SalePrice)</span></div>
        
      </div>
  }
  }
  catch (Exception)
  {
      
      <h1>Không có ảnh</h1>;
  }} 
  </div>    *@  
  </div>